package jmx.study.mbean;

/**
 * 被管理的MBean实现类，必须 用 MBean接口前面的字符命名
 *
 */
public class Hello implements HelloMBean {
    private String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    

	public void printHello() {
		 System.out.println("Hello , " + name);
	}

	public String queryStatus() {
		String rs = this.name + " : status = Good";
		System.out.println(rs);
		return  rs;
	}
   
}
